package edu.gatech.cs2340.group7.wheresmystuffapp.model;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class IReportItemView extends Activity {
	protected String name, description, category;
	protected ItemLocation location;
	protected void onCreate (Bundle b){
		super.onCreate(b);
		Intent i = getIntent();
		
		try{
			name = i.getStringExtra("Name");
			description = i.getStringExtra("Description");
			category = i.getStringExtra("Category");
		} catch(Exception e){
			name = "";
			description = "";
			category = "empty";
		}
		location = new ItemLocation(i.getIntExtra("Item Latitude", 0),i.getIntExtra("Item Longitude", 0));
	}
}
